package DAO;

public class Business {
	private IUserDao dao;
	public static void main(String[] args) throws Exception {
		Business b = new Business();
		b.setDao(new MysqlUserDao());
		b.business();
		b.setDao(new OracleUserDao());
		b.business();
	}

	private void business() throws Exception {
		dao.findAll(1, 10);
		dao.findMaxPage(10);
	}
	public void setDao(IUserDao dao){
		this.dao=dao;
	}
}
